import drag from './drag'
import dialogDragWidth from './dialogDragWidth'

export default function useDirectives(app) {
  /**
   * 拖拽指令使用方式：v-drag="[dragDom, dragHeader]"，如 `<div v-drag="['.drag-container .el-dialog', '.drag-container .el-dialog__header']"></div>`
   */
  app.directive('drag', drag)

  // v-dialogDragWidth: 弹窗宽度拖大 拖小
  app.directive('dialogDragWidth', dialogDragWidth)
}
